package com.wxassistant.service;

import cn.zhouyafeng.itchat4j.Wechat;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.wxassistant.component.wechat.MsgHandler;

/**
 * Created by huangzihao on 2017/12/14.
 */
@Service("wechat-assistant-service")
public class WechatAssistantService {
    @Value("${qrPath}")
    private String qrPath;

    public void login() {
        System.out.println("WechatAssistantService logining");
        MsgHandler msgHandler = new MsgHandler();
        Wechat wechat = new Wechat(msgHandler, qrPath);
        wechat.start();
    }
}
